<template>
	<view class="container">
		
		<button @click="getBanners">调用接口 </button>
	</view>
</template>

<script setup>
	import {ref} from 'vue'
	import {getBanner} from "../../api/index.js"
	const title = ref("标题")
	function getBanners(){
		getBanner().then(e=>{
			console.log(e,14)
		})
	}
</script>

<style>
	.container {
		padding: 20rpx;
		font-size: 14px;
		line-height: 24px;
	}
</style>
